package org.dl.gjz.menyj.task.service.deletegate;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Service;

@Service("queryAnnualLeave")
public class QueryAnnualLeaveService implements JavaDelegate {

    @Override
    public void execute(DelegateExecution execution) throws Exception {
        System.out.println("查询剩余年假任务");
        Object leftAnnualDays = execution.getVariable("leftAnnualDays");
        System.out.println("剩余年假天数：" + leftAnnualDays);
    }
}
